



//
//  CategoryTableViewCell.m
//  HeartOfMeet
//
//  Created by qianfeng on 16/4/2.
//  Copyright © 2016年 千云锋. All rights reserved.
//

#import "CategoryTableViewCell.h"

@implementation CategoryTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)updateWithModel:(CategoryModel *)model{
    [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:model.cover] placeholderImage:[UIImage imageNamed:@"touxiang01.png"]];
    self.titleLabel.text = model.title;
    self.speakerLabel.text = model.speak;
    self.listenerLabel.text = [NSString stringWithFormat:@"收听  %@", model.viewnum];
    self.iconImageView.layer.cornerRadius = 8;
    self.iconImageView.layer.masksToBounds = YES;

}


@end
